import {legacy_createStore as createStore, applyMiddleware, combineReducers} from "redux" // 创建核心store

import countReducer from "./reducers/count.reducer" // 引入count服务的reducer
import personReducer from "./reducers/person.reducer"

import thunk from "redux-thunk" // 用来支持异步action

import {composeWithDevTools} from "redux-devtools-extension" // 引入浏览器redux开发工具

export default createStore(
    combineReducers({
      count: countReducer,
      person: personReducer
    }),
    composeWithDevTools(applyMiddleware(thunk))
)
// export default createStore(countReducer, applyMiddleware(thunk))